
<div class="row RowSpace" style="margin-bottom:20px;">
	<div class="LableDiv" style="width:50px;"><Btn class="BtnSave" value="保存" ng-click="btnSave()"></Btn></div>
	<div class="LableDiv" style="width:60px;"><Btn value="放弃" ng-click="btnCancel()"></Btn></div>
	<div class="LableDiv" style="width:50px;"><Btn class="BtnAdd" value="新增" ng-click="btnAdd()"></Btn></div>
	<div class="LableDiv" style="width:60px;"><Btn class="BtnDelete" value="删除" ng-click="btnDelete()"></Btn></div>
	<div class="LableDiv" style="width:50px;">
		<BtnFind DisplayName="查找" WindowTitle="用户" change="btnFindChange()" module="Module.User">
			<FColumn type="0" width="100px" displayname="编码" valuefield="Code"></FColumn>
			<FColumn type="textbox" width="80px" displayname="名称" valuefield="Name"></FColumn>
			<FColumn type="textbox" width="200px" DisplayName="邮箱" valuefield="Email"></FColumn>
			<FColumn type="textbox" width="200px" displayname="备注" valuefield="Remark"></FColumn>
		</BtnFind>
	</div>
	<div class="LableDiv" style="width:60px;"><Btn value="列表" ng-click="btnList()"></Btn></div>
	<PageButton module="Module.User" afterturnpage="loadRoles()"></PageButton>
</div>
<div class="row RowSpace">
	<div class="LableDiv"><Label IsEmpty="false">编码</Label></div>
	<div class="InputDiv"><TextBox value="Module.User.FocusedRecord.Code" isempty="false"></TextBox></div>
	<div class="LableDiv"><Label IsEmpty="false">名称</Label></div>
	<div class="InputDiv"><TextBox value="Module.User.FocusedRecord.Name"></TextBox></div>
	<div class="LableDiv"><Label>邮箱</Label></div>
	<div class="InputDiv"><TextBox value="Module.User.FocusedRecord.Email"></TextBox></div>
	<div class="LableDiv"><Label>电话</Label></div>
	<div class="InputDiv"><TextBox value="Module.User.FocusedRecord.Phone"></TextBox></div>
</div>
<div class="row RowSpace">
	<div class="LableDiv"><Label>备注</Label></div>
	<div class="InputDiv" style="width:42%;height:80px;"><TextareaBox value="Module.User.FocusedRecord.Remark"></TextareaBox></div>
	<div class="LableDiv"><Label>头像</Label></div>
	<div class="InputDiv" style="height:80px;">
		<img ng-src="{{Module.User.FocusedRecord.Image?Module.User.FocusedRecord.Image:'users/img/default.png'}}" style="width: 80px;height:80px;border-radius:50%;margin-left:5px;cursor: pointer;" ng-click="openAvatar()">
	</div>
	<div class="LableDiv"><Label>生效</Label></div>
	<div class="InputDiv"><CheckBox value="Module.User.FocusedRecord.IsEffective"></CheckBox></div>
</div>

<div style="color:#68BDE2;font-weight:bold;margin-bottom:5px;">角色分配</div>
<div class="row RowSpace LastRow" style="margin-top:20px;">
	<DataGrid module="Module._Role" height="280px">
		<Column Type="Refer" IsEmpty="false" EntityName="Role" beforeshow="roleRefBeforeShow(refScope)" DisplayName="角色" width="200px" WindowTitle="系统角色" ValueField="Role">
			<RColumn type="0" width="100px" DisplayName="编码" valuefield="Code"></RColumn>
			<RColumn type="textbox" width="100px" DisplayName="名称" valuefield="Name"></RColumn>
		</Column>
	</DataGrid>
</div>
